home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #3
/
Amiga Plus CD - 1996 - No. 3.iso
/
pd
/
daten
/
routeplanner_v1.6
/
mui.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-20
|
552b
|
30 lines
void __regargs __autoopenfail(char *);
#include <constructor.h>
#include <proto/exec.h>
#include <proto/muimaster.h>
struct Library *MUIMasterBase;
static void *libbase;
extern long __oslibversion;
CBMLIB_CONSTRUCTOR(openmui)
{
libbase=MUIMasterBase=(void *)OpenLibrary("muimaster.library",8);
if(MUIMasterBase == NULL)
{
__autoopenfail("muimaster.library");
return 1;
}
return 0;
}
CBMLIB_DESTRUCTOR(closemui)
{
if(libbase)
{
CloseLibrary((struct Library *)libbase);
libbase=MUIMasterBase=NULL;
}
}